<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BWEventGroup
 *
 * @author I062261
 */
class BWEventGroup extends BWGroup {

    const EVENT_TYPE = '活动类型';
    const Event_TYPE_Promotion = '活动类型.促销';
    const Event_TYPE_Member_Activity = '活动类型.会员';
    const Event_TYPE_Member_youhui = '活动类型.优惠';
    const Event_TYPE_Member_Pools = '活动类型.会员.投票活动';

    public $name;
    public $description;
    public $parentId;
    public $spaceId;
    public $appId;
    protected $msgManager;

    //init group data
    public function initGroupBeforeFirstLoad($data = NULL) {
        //parent::initGroupBeforeFirstLoad($data);
        //$root = self::getRoot();
        //$root->addChild('活动类型');
        //$eventType = $root->getChild('活动类型');
        //$eventType->addChild('促销');
        //$eventType->addChild('促销.家电促销');
        //$eventType->addChild('促销.服装促销');
        //$eventType->addChild('会员.会员升级');
        //$eventType->addChild('会员.会员回馈');        
        //$eventType->addChild('优惠.品牌优惠');
        //$eventType->addChild('会员.投票活动');
        //$eventType->addChild('会员.我的抽奖');
    }

    public function getMessageManager($data = NULL) {
        if ($this->msgManager == NULL)
            $this->msgManager = new BWMessageManager($this);
        return $this->msgManager;
    }    
    
    
}

?>
